package com.xiaoke.service.impl;

import com.xiaoke.entity.Region;
import com.xiaoke.mapper.RegionMapper;
import com.xiaoke.service.RegionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RegionServiceImpl implements RegionService {

    @Autowired
    private RegionMapper regionMapper;

    @Override
    public List<Region> findByParent(Integer parentId){
        return regionMapper.findByParent(parentId);
    }
}
